#include <iostream>

using namespace std;
class Card;
class People
{
public:
	People(string _name)
	{
		name=_name;
	}
	friend class Card;
private:
	string name;
};

class Card
{
public:
		void getSetPeopleName(People &p)
		{
			cout<<p.name<<endl;
			//修改人的名字
			p.name="马云";
			cout<<p.name<<endl;
		}
private:
		float money;
};

class creditCard:public Card
{
	
};

int main()
{
	//定义人
	People people("马化腾");
	//定义card
	Card card;
	card.getSetPeopleName(people);
}